package com.producteev4j.model.json.task;

import com.producteev4j.model.response.BaseResponse;
import com.producteev4j.model.response.Note;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * Created by IntelliJ IDEA.
 * User: jcarrey
 * Date: 22/05/11
 * Time: 19:13
 * To change this template use File | Settings | File Templates.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class NoteImpl extends BaseResponse implements Note {

    @JsonProperty("id_note")
    private long idNote;

    @JsonProperty("id_task_ext")
    private long idTaskExt;

    @JsonProperty("id_creator")
    private long idCreator;

    @JsonProperty("message")
    private String message;

    @JsonProperty("file_url")
    private String fileUrl;

    @JsonProperty("file_name")
    private String fileName;

    @JsonProperty("time_create")
    private String timeCreate;

    @JsonProperty("time_lastchange")
    private String timeLastChange;

    @JsonProperty("deleted")
    private int deleted;

    public long getIdNote() {
        return idNote;
    }

    public void setIdNote(long idNote) {
        this.idNote = idNote;
    }

    public long getIdTaskExt() {
        return idTaskExt;
    }

    public void setIdTaskExt(long idTaskExt) {
        this.idTaskExt = idTaskExt;
    }

    public long getIdCreator() {
        return idCreator;
    }

    public void setIdCreator(long idCreator) {
        this.idCreator = idCreator;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getTimeCreate() {
        return timeCreate;
    }

    public void setTimeCreate(String timeCreate) {
        this.timeCreate = timeCreate;
    }

    public String getTimeLastChange() {
        return timeLastChange;
    }

    public void setTimeLastChange(String timeLastChange) {
        this.timeLastChange = timeLastChange;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return new StringBuilder("NoteImpl{").append(
                "idNote=").append(idNote).append(
                ", idTaskExt=").append(idTaskExt).append(
                ", idCreator=").append(idCreator).append(
                ", message='").append(message).append('\'').append(
                ", fileUrl='").append(fileUrl).append('\'').append(
                ", fileName='").append(fileName).append('\'').append(
                ", timeCreate='").append(timeCreate).append('\'').append(
                ", timeLastChange='").append(timeLastChange).append('\'').append(
                ", deleted=").append(deleted).append(
                '}').toString();
    }
}
